<?php

/**
 * 朋友们(导航)
 *
 * @package custom
 *
 **/

$pluginData = $this->options->plugin('myfriend');
$plugUrl    = $this->options->pluginUrl . '/myfriend';
function getReadableTextColor($backgroundColor)
{
    $R = ($backgroundColor >> 16) & 0x000000ff;
    $G = ($backgroundColor >> 8) & 0x000000ff;
    $B = ($backgroundColor) & 0x000000ff;
    $K = (($R * 0.3) + ($G * 0.59) + ($B * 0.11));
    return ($K > 128) ? 0x000000 : 0xffffff;
}

function getColor()
{
    $color   = rand(0, 16777215);
    $_bg     = base_convert($color, 10, 16);
    $_bg     = '#' . (strlen($_bg) == 6 ? $_bg : (str_pad($_bg, 6, "0")));
    $fgColor = getReadableTextColor($color);
    $_ft     = base_convert($fgColor, 10, 16);
    $_ft     = '#' . (strlen($_ft) == 6 ? $_ft : (str_pad($_ft, 6, "0")));
    return ['bg' => $_bg, 'ft' => $_ft];
}

function trimall($str)
{
    $qian = array(" ", "　", "\t", "\n", "\r");
    return str_replace($qian, '', $str);
}

?>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <?php $this->need('public/include.php'); ?>
    <link rel="stylesheet" href="<?php echo $plugUrl . '/pages/static/css/css.of.joe.css'; ?>">
</head>
<body>
<div id="Joe">
    <?php $this->need('public/header.php'); ?>
    <div class="joe_container">
        <div class="joe_main">
            <?php
            $type = trimall($pluginData->friendType);
            $type = explode("||", $type);
            // $notice = trimall($pluginData->friendNotice);
            $notice = explode("||", $pluginData->friendNotice);
            foreach ($type as $k => $item) {
                if (isset($notice[$k]) && $notice[$k] != '-') {
                    if (strpos($notice[$k], '<img') !== false) {
                        ?>
                        <div class="wjssk_friend__notice-img"><?php echo $notice[$k]; ?></div>
                        <?php
                    } else {
                        ?>
                        <div class="wjssk_friend__notice wjssk_myfriend__contain">
                            <span class="icon"><i class="fa fa-bullhorn fa-fw"></i></span>
                            <marquee scrollamount="4" behavior="scroll" onmouseover="this.stop()"
                                     onmouseout="this.start()">
                                <?php echo $notice[$k]; ?>
                            </marquee>
                        </div>
                        <?php
                    }
                }
                ?>
                <div class="wjssk_myfriend__list wjssk_myfriend__contain">
                    <div class="wjssk_myfriend__contain-title"><?php echo $item; ?></div>
                    <a class="portal" href="<?php echo $this->options->index; ?>/gofriend?url=yyds_<?php echo $k; ?>"
                       target="_blank" title="传送门"><i class="fa fa-spin fa-paper-plane-o"></i></a>
                    <div class="wjssk_myfriend__list-item">
                        <?php
                        $query = $this->db->select()->from('table.wjssk_myfriends')->where('type = ?', $k)->where('status = 2');
                        $res   = $this->db->fetchAll($query);
                        foreach ($res as $j => $rs) {
                            $color = getColor();
                            ?>
                            <a href="<?php echo $this->options->index; ?>/gofriend?url=<?php echo $rs['url']; ?>"
                               target="_blank"
                               class="wjssk_myfriend__item-detail"
                               style="background-color: <?php echo $color['bg']; ?>;color: <?php echo $color['ft']; ?>;">
                                <img width="40" height="40" class="avatar lazyload" src="<?php _getAvatarLazyload(); ?>"
                                     data-src="<?php echo $rs['icon']; ?>"
                                     alt="<?php echo $rs['title']; ?>"/>
                                <div class="wjssk_myfriend__item-detail_content">
                                    <p class="title" title="<?php echo $rs['title']; ?>"><?php echo $rs['title']; ?></p>
                                    <p class="desc"
                                       title="<?php echo $rs['description']; ?>"><?php echo $rs['description']; ?></p>
                                </div>
                            </a>
                            <?php
                        }
                        ?>
                    </div>
                </div>
                <?php
            }
            ?>
            <?php if ($pluginData->friendAddType): ?>
                <div id="apply_friend" class="wjssk_myfriend__list wjssk_myfriend__contain">
                    <div class="wjssk_myfriend__contain-title apply">申请加入友链</div>
                    <div class="wjssk_myfriend__list-notice">
                        <span class="icon"><i class="fa fa-bullhorn fa-fw"></i></span>
                        <marquee scrollamount="4" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()">
                            烦请认真填写哦，不然容易无法自动审核！
                        </marquee>
                    </div>
                    <div class="wjssk_myfriend__list-item">
                        <div class="test-show">
                            <?php
                            $color = getColor();
                            ?>
                            <a href="javascript:;" target="_blank" class="wjssk_myfriend__item-detail"
                               style="background-color: <?php echo $color['bg']; ?>;color: <?php echo $color['ft']; ?>;">
                                <img width="40" height="40" class="avatar lazyload" src="<?php _getAvatarLazyload(); ?>"
                                     data-src=""
                                     alt=""/>
                                <div class="wjssk_myfriend__item-detail_content">
                                    <p class="title" title="请在右侧填写调试">请在右侧填写调试</p>
                                    <p class="desc"
                                       title="请在右侧填写调试">请在右侧填写调试</p>
                                </div>
                            </a>
                            <h3>说明：</h3>
                            <ol>
                                <?php if ($pluginData->friendCheckType == 3): ?>
                                    <li>现在是自助审核，提交可以直接通过。</li>
                                <?php else: ?>
                                    <li>申请完后我会尽快审核。</li>
                                    <?php if ($pluginData->friendCheckType == 2): ?>
                                        <li>也可以自助审核。在您的站点加上我的好友链接，然后点过来，就可以进入自助审核！</li>
                                        <li>注意自助审核，您的好友链接的<span class="badge">&lt;a&gt;</span>标签不要添加<span class="badge">rel="noopener noreferrer"</span>
                                        </li>
                                    <?php endif; ?>
                                <?php endif; ?>
                                <li>所有好友链接都会定期检测站点是否正常，检测是否添加本站好友链接。</li>
                            </ol>
                        </div>
                        <form class="apply-friend-form" data-checktype="<?php echo $pluginData->friendCheckType; ?>">
                            <div class="form-group">
                                <label for="title">站点名称：</label>
                                <input type="text" name="title" id="title" placeholder="请填写站点名称" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label for="url">站点网址：</label>
                                <input type="text" name="url" id="url" placeholder="请填写站点网址(需填写http://或https://)"
                                       autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label for="icon">站点icon：</label>
                                <input type="text" name="icon" id="icon" placeholder="请填写站点icon" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label for="description">站点描述：</label>
                                <input type="text" name="description" id="description" placeholder="请填写站点描述"
                                       autocomplete="off">
                            </div>
                            <div class="form-group">
                                <label for="type">站点类别：</label>
                                <select id="type" name="type">
                                    <?php
                                    foreach ($type as $k => $item) {
                                        echo '<option value="' . $k . '">' . $item . '</option>';
                                    }
                                    ?>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="description">站长邮箱：</label>
                                <input type="text" name="email" id="email" placeholder="请填写站长邮箱" autocomplete="off">
                            </div>
                            <div class="form-group" style="text-align: center">
                                <button type="button" class="btn btn-primary" id="save">提交</button>
                                <button type="reset" class="btn">重置</button>
                            </div>
                        </form>
                    </div>
                </div>
                <div id="applying_friend" class="wjssk_myfriend__list wjssk_myfriend__contain">
                    <div class="wjssk_myfriend__contain-title applying">申请中站点</div>
                    <div class="wjssk_myfriend__list-notice">
                        <span class="icon"><i class="fa fa-bullhorn fa-fw"></i></span>
                        <marquee scrollamount="4" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()">
                            请等待审核，或着自助审核都可以！如果有什么问题可以到留言板告诉我一下。
                        </marquee>
                    </div>
                    <div class="wjssk_myfriend_applying-item">
                        <?php
                        $query = $this->db->select()->from('table.wjssk_myfriends')->where('status = 1');
                        $res   = $this->db->fetchAll($query);
                        foreach ($res as $rs) {
                            ?>
                            <p class="wjssk_myfriend_applying-detail">
                            <span class="icon">
                                <img class="avatar lazyload" src="<?php _getAvatarLazyload(); ?>"
                                     data-src="<?php echo $rs['icon']; ?>"
                                     alt="<?php echo $rs['title']; ?>"/>
                            </span>
                                <span><?php echo $rs['title']; ?>(<?php echo $rs['url']; ?>)</span>
                            </p>
                            <?php
                        }
                        ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
        <aside class="joe_aside">
            <!-- 申请加入友链 -->
            <section class="joe_aside__item apply-friend">
                <a href="#apply_friend">
                    <div class="joe_aside__item-title">
                        <svg t="1635320490398" class="icon" viewBox="0 0 1024 1024" version="1.1"
                             xmlns="http://www.w3.org/2000/svg" p-id="9747" width="18"
                             height="18">
                            <path d="M384 592v-43.072a400.448 400.448 0 0 0-160 101.472v9.152h41.824l113.792-67.552H384z m32 0h148.736l-139.84 224H278.176L217.824 896H177.76l84.48-112h144.896l99.872-160h-118.624l-113.76 67.552H189.312a397.696 397.696 0 0 0-76.288 207.52h797.952a397.92 397.92 0 0 0-25.664-115.072l-268-0.096L553.568 896h-36.8l81.92-144.128 73.312 0.032v-190.592a398.656 398.656 0 0 0-160-33.312c-33.088 0-65.248 4.032-96 11.616V592z m-32-76.704V96h32v410.72c30.88-7.04 63.04-10.72 96-10.72 56.48 0 110.496 10.88 160 30.624v-17.344a48 48 0 1 1 32 0v31.648c138.336 68.736 234.784 209.472 239.808 373.664l0.48 16.48H79.712l0.48-16.48A430.144 430.144 0 0 1 192 637.76v-128.512a48 48 0 1 1 32 0v96.736a431.68 431.68 0 0 1 160-90.72z m320 236.64l167.328 0.064A401.696 401.696 0 0 0 704 577.024v174.912zM448 92.16c56-30.304 109.312-19.392 160 32.8 50.688 52.16 104 41.28 160-32.8v234.304c-50.56 37.504-103.104 37.504-157.6 0-54.496-37.536-108.64-37.536-162.4 0V92.16z m32 182.24c49.312-16.416 99.84-7.84 148.544 25.696 38.656 26.592 72.64 29.536 107.456 9.248V168.096c-50.688 33.792-103.36 28.16-150.944-20.832C549.376 110.528 516.096 99.808 480 112.736v161.664z"
                                  p-id="9748"></path>
                        </svg>
                        <span class="text">申请加入友链</span>
                    </div>
                </a>
            </section>
            <!-- 点击排行榜 -->
            <section class="joe_aside__item rank_click">
                <div class="joe_aside__item-title">
                    <svg t="1635413629457" class="icon" viewBox="0 0 1024 1024" version="1.1"
                         xmlns="http://www.w3.org/2000/svg" p-id="9464" width="18" height="18">
                        <path d="M941.4 928.3H82c-9.9 0-17.9-8-17.9-17.9 0-9.9 8-17.9 17.9-17.9h859.4c9.9 0 17.9 8 17.9 17.9 0 9.9-8 17.9-17.9 17.9z"
                              fill="#FF7878" p-id="9465"></path>
                        <path d="M834 418.9c19.7 0 35.8 16.9 35.8 37.7v433.9h-197V418.9H834m0-37.7H637v547.1h268.6V456.7c0-41.7-32-75.5-71.6-75.5z"
                              fill="#FF7878" p-id="9466"></path>
                        <path d="M601.2 136c19.7 0 35.8 16.9 35.8 37.7v716.9H386.4V173.7c0-20.8 16.1-37.7 35.8-37.7h179m0-37.8h-179c-39.6 0-71.6 33.8-71.6 75.5v754.6h322.3V173.7c0-41.7-32.1-75.5-71.7-75.5z"
                              fill="#FF7878" p-id="9467"></path>
                        <path d="M350.6 286.9v603.7h-197v-566c0-20.8 16.1-37.7 35.8-37.7h161.2m35.8-37.7h-197c-39.6 0-71.6 33.8-71.6 75.5v603.7h268.6V249.2z"
                              fill="#FF7878" p-id="9468"></path>
                    </svg>
                    <span class="text">站点点击榜单</span>
                    <span class="line"></span>
                </div>
                <div class="joe_aside__item-contain">
                    <div class="content">
                        <ul>
                            <?php
                            $query = $this->db->select()->from('table.wjssk_myfriends')->where('status = 2')->order('click_no', Typecho_Db::SORT_DESC)->limit($pluginData->showRankNum);
                            $res   = $this->db->fetchAll($query);
                            foreach ($res as $k => $rs) {
                                ?>
                                <li class="rank_<?php echo $k + 1; ?>">
                                    <a href="<?php echo $this->options->index; ?>/gofriend?url=<?php echo $rs['url']; ?>"
                                       target="_blank">
                                        <span class="rank">
                                            <?php if ($k + 1 == 1): ?>
                                                <svg t="1635413436686" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8219"
                                                     width="20" height="20"><path
                                                            d="M315.334 478.652l-189.569 346.79 165.438-23.916 69.17 152.162 189.574-346.791z"
                                                            fill="#D32A2A" p-id="8220"></path><path
                                                            d="M719.193 478.652l189.57 346.79-165.439-23.916-69.171 152.162L484.58 606.897z"
                                                            fill="#D32A2A" p-id="8221"></path><path
                                                            d="M517.264 70.757c9.442 0 18.008 18.436 27.248 19.231 9.386 0.813 20.993-15.86 30.134-14.252 9.274 1.616 14.521 21.262 23.501 23.656 9.084 2.429 23.423-11.962 32.16-8.781 8.834 3.207 10.554 23.458 18.998 27.407 8.496 3.967 25.134-7.701 33.207-3.034 8.116 4.693 6.283 24.944 13.933 30.303 7.658 5.376 26.076-3.232 33.225 2.775 7.165 6.024 1.866 25.644 8.479 32.256 6.604 6.604 26.224 1.305 32.247 8.47 6.008 7.157-2.602 25.566 2.774 33.233 5.359 7.641 25.61 5.817 30.304 13.924 4.667 8.073-7.01 24.711-3.043 33.207 3.95 8.444 24.209 10.165 27.416 18.989 3.189 8.738-11.219 23.085-8.781 32.169 2.395 8.98 22.031 14.218 23.656 23.492 1.599 9.145-15.074 20.752-14.262 30.139 0.796 9.239 19.231 17.805 19.231 27.243 0 9.438-18.436 18.012-19.231 27.243-0.813 9.387 15.86 20.994 14.253 30.139-1.616 9.274-21.262 14.512-23.656 23.492-2.429 9.084 11.962 23.432 8.781 32.17-3.206 8.824-23.466 10.553-27.416 18.998-3.958 8.496 7.71 25.133 3.043 33.205-4.693 8.107-24.944 6.283-30.312 13.924-5.367 7.668 3.232 26.078-2.766 33.225-6.016 7.166-25.645 1.867-32.257 8.479-6.611 6.613-1.305 26.232-8.479 32.248-7.148 6.008-25.558-2.592-33.225 2.775-7.641 5.367-5.816 25.617-13.924 30.303-8.081 4.666-24.711-7.002-33.207-3.035-8.444 3.941-10.164 24.201-18.989 27.408-8.737 3.18-23.085-11.211-32.174-8.791-8.976 2.404-14.213 22.041-23.487 23.674-9.141 1.6-20.752-15.082-30.139-14.27-9.235 0.795-17.805 19.23-27.243 19.23-9.442 0-18.008-18.436-27.248-19.23-9.386-0.813-20.994 15.861-30.134 14.262-9.274-1.625-14.517-21.262-23.496-23.666-9.079-2.42-23.427 11.971-32.175 8.791-8.82-3.215-10.544-23.467-18.988-27.408-8.492-3.967-25.135 7.701-33.207 3.035-8.111-4.693-6.283-24.945-13.928-30.313-7.662-5.367-26.076 3.232-33.229-2.773-7.166-6.016-1.863-25.637-8.475-32.248-6.608-6.611-26.229-1.314-32.252-8.471-6.003-7.156 2.602-25.566-2.771-33.232-5.363-7.648-25.614-5.826-30.308-13.934-4.662-8.072 7.01-24.709 3.043-33.205-3.945-8.436-24.201-10.164-27.412-18.99-3.18-8.738 11.215-23.086 8.791-32.161-2.398-8.98-22.045-14.227-23.67-23.492-1.599-9.145 15.078-20.752 14.266-30.139-0.795-9.239-19.23-17.805-19.23-27.243 0-9.447 18.436-18.013 19.23-27.252 0.813-9.386-15.864-20.994-14.266-30.139 1.629-9.265 21.271-14.512 23.67-23.492 2.424-9.075-11.971-23.423-8.786-32.169 3.211-8.825 23.466-10.545 27.411-18.989 3.968-8.497-7.705-25.134-3.037-33.207 4.692-8.116 24.943-6.284 30.307-13.924 5.376-7.667-3.229-26.076 2.774-33.233 6.016-7.165 25.64-1.867 32.252-8.479 6.612-6.604 1.31-26.224 8.475-32.248 7.151-5.999 25.562 2.602 33.228-2.766 7.646-5.367 5.822-25.618 13.93-30.311 8.076-4.667 24.71 7.009 33.206 3.042 8.44-3.95 10.165-24.201 18.989-27.416 8.738-3.181 23.086 11.219 32.166 8.79 8.979-2.394 14.217-22.04 23.491-23.665 9.14-1.599 20.753 15.074 30.139 14.261 9.237-0.795 17.806-19.23 27.245-19.23z"
                                                            fill="#E2B700" p-id="8222"></path><path
                                                            d="M318.313 202.23c109.875-109.875 288.022-109.875 397.897 0 109.869 109.875 109.869 288.021 0 397.898-109.881 109.875-288.022 109.875-397.897 0-109.87-109.877-109.87-288.011 0-397.898z"
                                                            fill="#FFD31A" p-id="8223"></path><path
                                                            d="M509.965 294.106h-0.712l-40.229 21.717-6.053-23.854 50.555-27.057h26.701v231.412h-30.262V294.106z"
                                                            fill="#B67D1C" p-id="8224"></path><path
                                                            d="M542.439 498.537h-34.687V297.431l-40.176 21.688-7.176-28.283 52.57-28.136h29.469v235.837z m-30.262-4.425h25.836V267.125H514.08l-48.539 25.979 4.929 19.424 38.224-20.634h3.483v202.218z"
                                                            fill="#B67D1C" p-id="8225"></path><path
                                                            d="M517.264 550.796l8.211 16.639 18.362 2.669-13.288 12.948 3.14 18.289-16.425-8.635-16.426 8.635 3.141-18.289-13.289-12.948 18.363-2.669zM435.024 529.854l1.759 16.456 14.56 7.882-15.109 6.76-2.99 16.283-11.102-12.281-16.41 2.186 8.25-14.356-7.147-14.928 16.197 3.407zM599.512 529.854l-1.768 16.456-14.555 7.882 15.108 6.76 2.986 16.283 11.107-12.281 16.413 2.186-8.254-14.356 7.148-14.928-16.197 3.407z"
                                                            fill="#B67D1C" p-id="8226"></path></svg>
                                            <?php elseif ($k + 1 == 2): ?>
                                                <svg t="1635413558361" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8418"
                                                     width="20" height="20"><path
                                                            d="M311.026 476.17L122.985 820.166l164.103-23.727 68.615 150.943 188.05-343.999z"
                                                            fill="#1A64AD" p-id="8419"></path><path
                                                            d="M711.632 476.17l188.047 343.996-164.115-23.727-68.604 150.943-188.049-343.999z"
                                                            fill="#1A64AD" p-id="8420"></path><path
                                                            d="M511.33 71.562c9.367 0 17.86 18.288 27.029 19.079 9.307 0.804 20.823-15.734 29.887-14.143 9.201 1.607 14.415 21.088 23.319 23.47 9.011 2.403 23.235-11.871 31.896-8.717 8.768 3.186 10.47 23.274 18.846 27.188 8.429 3.934 24.938-7.641 32.943-3.009 8.049 4.653 6.229 24.742 13.813 30.062 7.604 5.335 25.879-3.208 32.964 2.755 7.107 5.97 1.852 25.432 8.408 31.989 6.546 6.557 26.016 1.301 31.991 8.402 5.954 7.102-2.58 25.361 2.75 32.967 5.319 7.583 25.402 5.769 30.066 13.812 4.622 8.011-6.959 24.517-3.024 32.943 3.924 8.373 24.018 10.079 27.19 18.833 3.173 8.672-11.126 22.902-8.704 31.912 2.369 8.908 21.85 14.105 23.468 23.301 1.586 9.074-14.954 20.585-14.15 29.897 0.782 9.167 19.067 17.661 19.067 27.023s-18.285 17.87-19.067 27.023c-0.804 9.312 15.736 20.827 14.14 29.898-1.607 9.198-21.088 14.396-23.468 23.303-2.411 9.008 11.866 23.243 8.704 31.91-3.173 8.754-23.277 10.467-27.19 18.846-3.924 8.426 7.646 24.93 3.015 32.938-4.653 8.043-24.737 6.231-30.057 13.812-5.33 7.604 3.204 25.866-2.75 32.957-5.965 7.106-25.435 1.854-31.991 8.41-6.567 6.56-1.301 26.021-8.418 31.989-7.086 5.959-25.351-2.573-32.954 2.752-7.583 5.325-5.774 25.411-13.813 30.056-8.016 4.633-24.514-6.942-32.943-3.006-8.375 3.908-10.078 24.005-18.835 27.183-8.661 3.162-22.896-11.115-31.917-8.715-8.905 2.38-14.098 21.86-23.299 23.483-9.063 1.581-20.58-14.959-29.887-14.155-9.169 0.788-17.662 19.073-27.029 19.073-9.365 0-17.862-18.285-27.026-19.073-9.312-0.804-20.829 15.731-29.897 14.15-9.196-1.618-14.394-21.099-23.304-23.479-9.005-2.4-23.235 11.877-31.912 8.715-8.751-3.184-10.459-23.274-18.841-27.183-8.423-3.937-24.927 7.639-32.938 3.006-8.048-4.652-6.229-24.741-13.817-30.063-7.599-5.325-25.863 3.207-32.959-2.753-7.107-5.967-1.851-25.429-8.408-31.988-6.557-6.557-26.016-1.304-31.992-8.402-5.954-7.097 2.581-25.36-2.744-32.965-5.32-7.588-25.414-5.779-30.067-13.822-4.627-8.009 6.954-24.512 3.014-32.938-3.908-8.369-24.002-10.082-27.185-18.836-3.157-8.669 11.125-22.902 8.72-31.902-2.379-8.907-21.871-14.116-23.478-23.303-1.586-9.071 14.954-20.586 14.15-29.898-0.793-9.167-19.079-17.661-19.079-27.023 0-9.37 18.285-17.865 19.079-27.032 0.804-9.312-15.737-20.823-14.15-29.897 1.618-9.188 21.099-14.394 23.478-23.303 2.406-9-11.876-23.235-8.72-31.907 3.188-8.754 23.277-10.464 27.19-18.835 3.939-8.426-7.641-24.938-3.009-32.943 4.653-8.045 24.742-6.234 30.062-13.814 5.331-7.604-3.204-25.865 2.755-32.959 5.964-7.107 25.429-1.854 31.991-8.411 6.552-6.554 1.295-26.016 8.402-31.989 7.097-5.954 25.361 2.581 32.965-2.747 7.583-5.325 5.774-25.414 13.812-30.064 8.017-4.629 24.515 6.948 32.943 3.014 8.371-3.913 10.084-24.007 18.835-27.19 8.672-3.154 22.902 11.123 31.907 8.72 8.905-2.382 14.103-21.863 23.298-23.48 9.068-1.586 20.585 14.957 29.903 14.153 9.16-0.792 17.663-19.08 27.022-19.08z"
                                                            fill="#C6C6C6" p-id="8421"></path><path
                                                            d="M312.38 204.275c109.875-109.875 288.022-109.875 397.897 0 109.869 109.875 109.869 288.021 0 397.898-109.881 109.875-288.022 109.875-397.897 0-109.869-109.877-109.869-288.011 0-397.898z"
                                                            fill="#DDDDDD" p-id="8422"></path><path
                                                            d="M436.646 493.701v-19.07l24.367-23.661c58.623-55.798 85.109-85.462 85.463-120.071 0-23.308-11.301-44.85-45.557-44.85-20.836 0-38.14 10.594-48.735 19.423l-9.888-21.896c15.892-13.419 38.493-23.308 64.979-23.308 49.441 0 70.276 33.902 70.276 66.745 0 42.378-30.724 76.633-79.105 123.249l-18.364 16.951v0.707h103.119v25.78H436.646z"
                                                            fill="#7F7F7F" p-id="8423"></path><path
                                                            d="M585.91 496.409H433.939v-22.923l25.188-24.458c59.422-56.558 84.308-85.469 84.642-118.156 0-15.711-5.567-42.115-42.85-42.115-21.271 0-38.578 11.776-47.001 18.796l-2.735 2.279-12.195-27.004 1.563-1.319c18.287-15.442 41.984-23.947 66.726-23.947 50.417 0 72.983 34.882 72.983 69.453 0 44.726-33.13 80.103-79.934 125.199l-14.083 13h99.667v31.195z m-146.556-5.415h141.142v-20.365h-103.12v-4.6l19.235-17.755c45.791-44.121 78.234-78.671 78.234-121.26 0-29.541-17.696-64.038-67.569-64.038-22.76 0-44.573 7.575-61.661 21.371l7.597 16.823c11.068-8.599 27.627-17.829 47.707-17.829 30.673 0 48.264 17.334 48.264 47.558-0.37 36.308-27.918 66.46-86.303 122.032l-23.526 22.845v15.218z"
                                                            fill="#7F7F7F" p-id="8424"></path><path
                                                            d="M511.33 547.735l8.149 16.504 18.214 2.65-13.188 12.843 3.12 18.141-16.295-8.564-16.291 8.564 3.114-18.141-13.177-12.843 18.211-2.65zM429.754 526.96l1.74 16.323 14.446 7.821-14.985 6.708-2.972 16.149-11.009-12.181-16.276 2.168 8.18-14.24-7.091-14.809 16.07 3.382zM592.919 526.96l-1.755 16.323-14.436 7.821 14.986 6.708 2.961 16.149 11.01-12.181 16.286 2.168-8.186-14.24 7.086-14.809-16.064 3.382z"
                                                            fill="#7F7F7F" p-id="8425"></path></svg>
                                            <?php elseif ($k + 1 == 3): ?>
                                                <svg t="1635413598370" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8605"
                                                     width="20" height="20"><path
                                                            d="M318.601 479.35L133.288 818.355l161.722-23.377 67.62 148.747 185.318-339.006z"
                                                            fill="#148C00" p-id="8606"></path><path
                                                            d="M713.397 479.35l185.314 339.005-161.723-23.377-67.62 148.747L484.05 604.719z"
                                                            fill="#148C00" p-id="8607"></path><path
                                                            d="M515.999 80.614c9.229 0 17.603 18.02 26.634 18.802 9.177 0.792 20.527-15.509 29.459-13.935 9.067 1.584 14.195 20.782 22.976 23.127 8.881 2.366 22.898-11.693 31.439-8.588 8.635 3.137 10.313 22.93 18.572 26.796 8.302 3.877 24.571-7.535 32.461-2.97 7.931 4.586 6.144 24.388 13.616 29.631 7.488 5.252 25.493-3.168 32.481 2.709 7.003 5.878 1.823 25.066 8.29 31.527 6.452 6.462 25.634 1.282 31.522 8.275 5.872 7.004-2.543 24.993 2.709 32.486 5.243 7.483 25.034 5.69 29.626 13.611 4.561 7.9-6.853 24.169-2.976 32.476 3.861 8.244 23.669 9.922 26.801 18.552 3.116 8.546-10.97 22.574-8.582 31.454 2.339 8.775 21.538 13.893 23.122 22.96 1.563 8.942-14.732 20.292-13.94 29.463 0.776 9.036 18.802 17.405 18.802 26.629 0 9.234-18.025 17.614-18.802 26.64-0.792 9.172 15.503 20.521 13.935 29.454-1.578 9.067-20.787 14.194-23.127 22.97-2.377 8.881 11.693 22.909 8.582 31.444-3.132 8.631-22.939 10.318-26.801 18.573-3.866 8.306 7.541 24.575 2.977 32.465-4.587 7.921-24.383 6.139-29.632 13.612-5.247 7.493 3.158 25.492-2.704 32.475-5.878 7.004-25.065 1.824-31.532 8.286-6.462 6.463-1.276 25.649-8.285 31.528-6.988 5.867-24.988-2.533-32.481 2.709-7.468 5.253-5.686 25.045-13.611 29.62-7.9 4.564-24.154-6.837-32.461-2.96-8.254 3.856-9.938 23.659-18.562 26.796-8.541 3.106-22.569-10.964-31.455-8.599-8.771 2.346-13.893 21.543-22.96 23.148-8.932 1.553-20.287-14.748-29.459-13.956-9.031 0.782-17.405 18.802-26.634 18.802s-17.603-18.02-26.634-18.802c-9.176-0.792-20.527 15.509-29.458 13.945-9.067-1.595-14.189-20.792-22.971-23.138-8.875-2.365-22.903 11.705-31.449 8.599-8.625-3.147-10.308-22.939-18.567-26.796-8.301-3.877-24.57 7.524-32.46 2.96-7.932-4.586-6.144-24.378-13.617-29.631-7.488-5.241-25.488 3.169-32.481-2.709-7.004-5.879-1.819-25.055-8.286-31.527-6.457-6.462-25.639-1.283-31.528-8.276-5.868-6.993 2.543-24.992-2.709-32.485-5.242-7.483-25.035-5.701-29.625-13.622-4.56-7.891 6.853-24.159 2.976-32.465-3.856-8.245-23.659-9.934-26.795-18.563-3.111-8.536 10.959-22.564 8.593-31.435-2.345-8.775-21.553-13.913-23.143-22.97-1.558-8.932 14.742-20.282 13.95-29.454-0.782-9.036-18.802-17.405-18.802-26.64 0-9.234 18.02-17.603 18.802-26.639 0.792-9.171-15.508-20.521-13.95-29.463 1.595-9.057 20.798-14.185 23.143-22.961 2.366-8.869-11.704-22.897-8.593-31.443 3.142-8.63 22.939-10.318 26.8-18.563 3.877-8.307-7.535-24.576-2.97-32.465 4.586-7.932 24.383-6.149 29.625-13.611 5.258-7.494-3.158-25.493 2.709-32.486 5.884-7.004 25.066-1.824 31.533-8.286 6.461-6.462 1.277-25.639 8.28-31.527 6.994-5.868 24.993 2.543 32.486-2.71 7.473-5.243 5.69-25.044 13.617-29.62 7.895-4.565 24.154 6.848 32.46 2.97 8.249-3.866 9.937-23.659 18.562-26.806 8.542-3.106 22.57 10.964 31.444 8.598 8.776-2.345 13.898-21.542 22.965-23.137 8.932-1.563 20.287 14.737 29.458 13.945 9.032-0.779 17.407-18.799 26.635-18.799z"
                                                            fill="#DD8E2F" p-id="8608"></path><path
                                                            d="M316.073 209.581c109.875-109.875 288.021-109.875 397.897 0 109.868 109.875 109.868 288.021 0 397.897-109.881 109.875-288.022 109.875-397.897 0-109.869-109.875-109.869-288.01 0-397.897z"
                                                            fill="#FFA70B" p-id="8609"></path><path
                                                            d="M449.701 461.477c8.7 5.568 28.886 14.269 50.115 14.269 39.326 0 51.507-25.058 51.159-43.851-0.349-31.67-28.886-45.243-58.468-45.243h-17.053v-22.969h17.053c22.273 0 50.463-11.485 50.463-38.283 0-18.097-11.484-34.106-39.674-34.106-18.097 0-35.499 8.004-45.243 14.965l-8.005-22.273c11.833-8.701 34.802-17.401 59.164-17.401 44.547 0 64.732 26.45 64.732 53.943 0 23.318-13.921 43.155-41.763 53.248v0.696c27.842 5.568 50.463 26.45 50.463 58.12 0 36.194-28.189 67.864-82.481 67.864-25.405 0-47.679-8.004-58.815-15.313l8.353-23.666z"
                                                            fill="#973F00" p-id="8610"></path><path
                                                            d="M500.164 503.123c-26.778 0-49.208-8.484-60.279-15.75l-1.748-1.147 10.168-28.811 2.834 1.814c7.483 4.79 27.288 13.848 48.677 13.848 16.431 0 29.104-4.423 37.666-13.145 7.075-7.208 11.021-17.409 10.825-27.989-0.346-31.466-30.275-42.624-55.8-42.624h-19.721v-28.305h19.721c19.212 0 47.795-9.485 47.795-35.615 0-19.686-13.834-31.438-37.006-31.438-17.3 0-34.349 7.794-43.692 14.468l-2.869 2.05-9.871-27.465 1.604-1.179c12.131-8.92 35.618-17.92 60.745-17.92 46.56 0 67.4 28.433 67.4 56.611 0 23.305-13.348 42.332-36.9 53.059 27.937 8.28 45.601 30.792 45.601 59.004 0 19.29-7.729 36.866-21.765 49.489-15.308 13.769-37.226 21.045-63.385 21.045z m-55.588-19.107c11.724 7.024 32.82 13.771 55.588 13.771 55.135 0 79.813-32.745 79.813-65.196 0-27.847-18.966-49.633-48.318-55.503l-2.145-0.429v-4.754l1.759-0.638c25.797-9.351 40.004-27.371 40.004-50.739 0-23.654-16.255-51.275-62.064-51.275-22.835 0-44.139 7.729-55.966 15.742l6.157 17.132c10.672-6.846 26.968-13.5 43.893-13.5 31.219 0 42.342 18.996 42.342 36.774 0 26.884-26.729 40.951-53.131 40.951h-14.385v17.633h14.385c27.959 0 60.747 12.54 61.136 47.881 0.222 11.982-4.28 23.583-12.354 31.806-9.604 9.783-23.557 14.743-41.474 14.743-20.282 0-39.252-7.723-48.682-12.982l-6.558 18.583z"
                                                            fill="#973F00" p-id="8611"></path><path
                                                            d="M515.999 549.877l8.025 16.269 17.953 2.606-12.992 12.663 3.07 17.874-16.056-8.442-16.056 8.442 3.07-17.874-12.992-12.663 17.953-2.606zM435.606 529.407l1.721 16.081 14.231 7.714-14.768 6.607-2.924 15.916-10.854-12.007-16.04 2.136 8.061-14.029-6.983-14.591 15.831 3.326zM596.401 529.407l-1.729 16.081-14.227 7.714 14.769 6.607 2.918 15.916 10.86-12.007 16.045 2.136-8.072-14.029 6.988-14.591-15.832 3.326z"
                                                            fill="#973F00" p-id="8612"></path></svg>
                                            <?php else: ?>
                                                <?php echo $k + 1; ?>
                                            <?php endif; ?>
                                        </span>
                                        <span class="icon"><img src="<?php echo $rs['icon']; ?>"/></span>
                                        <span class="title"><?php echo $rs['title']; ?></span>
                                        <span class="num"><?php echo $rs['click_no']; ?></span>
                                    </a>
                                </li>
                                <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
            </section>
            <!-- 来访排行榜 -->
            <section class="joe_aside__item rank_visit">
                <div class="joe_aside__item-title">
                    <svg t="1635413658250" class="icon" viewBox="0 0 1024 1024" version="1.1"
                         xmlns="http://www.w3.org/2000/svg" p-id="9614" width="18" height="18">
                        <path d="M784.981333 170.769067A16.930133 16.930133 0 0 0 768.085333 153.6h-512.170666C246.613333 153.6 238.933333 161.314133 238.933333 170.837333v305.578667C247.466667 620.526933 367.035733 733.866667 512 733.866667c145.032533 0 264.516267-113.390933 272.622933-257.416534l0.3584-305.681066zM835.84 477.866667C826.948267 649.028267 685.346133 785.066667 512 785.066667c-173.3632 0-314.948267-136.0384-324.266667-307.2V170.837333C187.733333 133.12 218.2656 102.4 255.914667 102.4h512.170666a68.130133 68.130133 0 0 1 68.096 68.437333L835.84 477.866667z"
                              fill="#108EE9" p-id="9615"></path>
                        <path d="M904.311467 433.7152l0.136533-126.464A17.015467 17.015467 0 0 0 887.364267 290.133333H836.266667v238.9504a110.933333 110.933333 0 0 0 68.0448-95.368533zM785.066667 238.933333h102.2976a68.215467 68.215467 0 0 1 68.283733 68.369067l-0.136533 127.8976c-4.437333 85.572267-75.229867 153.6-161.911467 153.6-2.8672 0-5.700267-0.068267-8.533333-0.221867V238.933333zM187.648 238.933333l51.2 51.2h-51.2v-51.2z m0 51.2H136.567467A17.015467 17.015467 0 0 0 119.466667 307.2512l0.136533 126.464a110.933333 110.933333 0 0 0 68.0448 95.368533V290.133333z m51.2-51.2v349.6448a164.778667 164.778667 0 0 1-8.533333 0.221867c-86.664533 0-157.474133-68.027733-161.911467-153.6L68.266667 307.3024A68.215467 68.215467 0 0 1 136.567467 238.933333h102.280533z"
                              fill="#108EE9" p-id="9616"></path>
                        <path d="M494.933333 733.866667l51.2 0 0 179.2-51.2 0 0-179.2Z" fill="#108EE9"
                              p-id="9617"></path>
                        <path d="M699.733333 870.4l0 51.2-375.466666 0 0-51.2 375.466666 0Z" fill="#108EE9"
                              p-id="9618"></path>
                    </svg>
                    <span class="text">站点来访榜单</span>
                    <span class="line"></span>
                </div>
                <div class="joe_aside__item-contain">
                    <div class="content">
                        <ul>
                            <?php
                            $query = $this->db->select()->from('table.wjssk_myfriends')->where('status = 2')->order('visit_no', Typecho_Db::SORT_DESC)->limit($pluginData->showRankNum);
                            $res   = $this->db->fetchAll($query);
                            foreach ($res as $k => $rs) {
                                ?>
                                <li class="rank_<?php echo $k + 1; ?>">
                                    <a href="<?php echo $this->options->index; ?>/gofriend?url=<?php echo $rs['url']; ?>"
                                       target="_blank">
                                        <span class="rank">
                                            <?php if ($k + 1 == 1): ?>
                                                <svg t="1635413436686" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8219"
                                                     width="20" height="20"><path
                                                            d="M315.334 478.652l-189.569 346.79 165.438-23.916 69.17 152.162 189.574-346.791z"
                                                            fill="#D32A2A" p-id="8220"></path><path
                                                            d="M719.193 478.652l189.57 346.79-165.439-23.916-69.171 152.162L484.58 606.897z"
                                                            fill="#D32A2A" p-id="8221"></path><path
                                                            d="M517.264 70.757c9.442 0 18.008 18.436 27.248 19.231 9.386 0.813 20.993-15.86 30.134-14.252 9.274 1.616 14.521 21.262 23.501 23.656 9.084 2.429 23.423-11.962 32.16-8.781 8.834 3.207 10.554 23.458 18.998 27.407 8.496 3.967 25.134-7.701 33.207-3.034 8.116 4.693 6.283 24.944 13.933 30.303 7.658 5.376 26.076-3.232 33.225 2.775 7.165 6.024 1.866 25.644 8.479 32.256 6.604 6.604 26.224 1.305 32.247 8.47 6.008 7.157-2.602 25.566 2.774 33.233 5.359 7.641 25.61 5.817 30.304 13.924 4.667 8.073-7.01 24.711-3.043 33.207 3.95 8.444 24.209 10.165 27.416 18.989 3.189 8.738-11.219 23.085-8.781 32.169 2.395 8.98 22.031 14.218 23.656 23.492 1.599 9.145-15.074 20.752-14.262 30.139 0.796 9.239 19.231 17.805 19.231 27.243 0 9.438-18.436 18.012-19.231 27.243-0.813 9.387 15.86 20.994 14.253 30.139-1.616 9.274-21.262 14.512-23.656 23.492-2.429 9.084 11.962 23.432 8.781 32.17-3.206 8.824-23.466 10.553-27.416 18.998-3.958 8.496 7.71 25.133 3.043 33.205-4.693 8.107-24.944 6.283-30.312 13.924-5.367 7.668 3.232 26.078-2.766 33.225-6.016 7.166-25.645 1.867-32.257 8.479-6.611 6.613-1.305 26.232-8.479 32.248-7.148 6.008-25.558-2.592-33.225 2.775-7.641 5.367-5.816 25.617-13.924 30.303-8.081 4.666-24.711-7.002-33.207-3.035-8.444 3.941-10.164 24.201-18.989 27.408-8.737 3.18-23.085-11.211-32.174-8.791-8.976 2.404-14.213 22.041-23.487 23.674-9.141 1.6-20.752-15.082-30.139-14.27-9.235 0.795-17.805 19.23-27.243 19.23-9.442 0-18.008-18.436-27.248-19.23-9.386-0.813-20.994 15.861-30.134 14.262-9.274-1.625-14.517-21.262-23.496-23.666-9.079-2.42-23.427 11.971-32.175 8.791-8.82-3.215-10.544-23.467-18.988-27.408-8.492-3.967-25.135 7.701-33.207 3.035-8.111-4.693-6.283-24.945-13.928-30.313-7.662-5.367-26.076 3.232-33.229-2.773-7.166-6.016-1.863-25.637-8.475-32.248-6.608-6.611-26.229-1.314-32.252-8.471-6.003-7.156 2.602-25.566-2.771-33.232-5.363-7.648-25.614-5.826-30.308-13.934-4.662-8.072 7.01-24.709 3.043-33.205-3.945-8.436-24.201-10.164-27.412-18.99-3.18-8.738 11.215-23.086 8.791-32.161-2.398-8.98-22.045-14.227-23.67-23.492-1.599-9.145 15.078-20.752 14.266-30.139-0.795-9.239-19.23-17.805-19.23-27.243 0-9.447 18.436-18.013 19.23-27.252 0.813-9.386-15.864-20.994-14.266-30.139 1.629-9.265 21.271-14.512 23.67-23.492 2.424-9.075-11.971-23.423-8.786-32.169 3.211-8.825 23.466-10.545 27.411-18.989 3.968-8.497-7.705-25.134-3.037-33.207 4.692-8.116 24.943-6.284 30.307-13.924 5.376-7.667-3.229-26.076 2.774-33.233 6.016-7.165 25.64-1.867 32.252-8.479 6.612-6.604 1.31-26.224 8.475-32.248 7.151-5.999 25.562 2.602 33.228-2.766 7.646-5.367 5.822-25.618 13.93-30.311 8.076-4.667 24.71 7.009 33.206 3.042 8.44-3.95 10.165-24.201 18.989-27.416 8.738-3.181 23.086 11.219 32.166 8.79 8.979-2.394 14.217-22.04 23.491-23.665 9.14-1.599 20.753 15.074 30.139 14.261 9.237-0.795 17.806-19.23 27.245-19.23z"
                                                            fill="#E2B700" p-id="8222"></path><path
                                                            d="M318.313 202.23c109.875-109.875 288.022-109.875 397.897 0 109.869 109.875 109.869 288.021 0 397.898-109.881 109.875-288.022 109.875-397.897 0-109.87-109.877-109.87-288.011 0-397.898z"
                                                            fill="#FFD31A" p-id="8223"></path><path
                                                            d="M509.965 294.106h-0.712l-40.229 21.717-6.053-23.854 50.555-27.057h26.701v231.412h-30.262V294.106z"
                                                            fill="#B67D1C" p-id="8224"></path><path
                                                            d="M542.439 498.537h-34.687V297.431l-40.176 21.688-7.176-28.283 52.57-28.136h29.469v235.837z m-30.262-4.425h25.836V267.125H514.08l-48.539 25.979 4.929 19.424 38.224-20.634h3.483v202.218z"
                                                            fill="#B67D1C" p-id="8225"></path><path
                                                            d="M517.264 550.796l8.211 16.639 18.362 2.669-13.288 12.948 3.14 18.289-16.425-8.635-16.426 8.635 3.141-18.289-13.289-12.948 18.363-2.669zM435.024 529.854l1.759 16.456 14.56 7.882-15.109 6.76-2.99 16.283-11.102-12.281-16.41 2.186 8.25-14.356-7.147-14.928 16.197 3.407zM599.512 529.854l-1.768 16.456-14.555 7.882 15.108 6.76 2.986 16.283 11.107-12.281 16.413 2.186-8.254-14.356 7.148-14.928-16.197 3.407z"
                                                            fill="#B67D1C" p-id="8226"></path></svg>
                                            <?php elseif ($k + 1 == 2): ?>
                                                <svg t="1635413558361" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8418"
                                                     width="20" height="20"><path
                                                            d="M311.026 476.17L122.985 820.166l164.103-23.727 68.615 150.943 188.05-343.999z"
                                                            fill="#1A64AD" p-id="8419"></path><path
                                                            d="M711.632 476.17l188.047 343.996-164.115-23.727-68.604 150.943-188.049-343.999z"
                                                            fill="#1A64AD" p-id="8420"></path><path
                                                            d="M511.33 71.562c9.367 0 17.86 18.288 27.029 19.079 9.307 0.804 20.823-15.734 29.887-14.143 9.201 1.607 14.415 21.088 23.319 23.47 9.011 2.403 23.235-11.871 31.896-8.717 8.768 3.186 10.47 23.274 18.846 27.188 8.429 3.934 24.938-7.641 32.943-3.009 8.049 4.653 6.229 24.742 13.813 30.062 7.604 5.335 25.879-3.208 32.964 2.755 7.107 5.97 1.852 25.432 8.408 31.989 6.546 6.557 26.016 1.301 31.991 8.402 5.954 7.102-2.58 25.361 2.75 32.967 5.319 7.583 25.402 5.769 30.066 13.812 4.622 8.011-6.959 24.517-3.024 32.943 3.924 8.373 24.018 10.079 27.19 18.833 3.173 8.672-11.126 22.902-8.704 31.912 2.369 8.908 21.85 14.105 23.468 23.301 1.586 9.074-14.954 20.585-14.15 29.897 0.782 9.167 19.067 17.661 19.067 27.023s-18.285 17.87-19.067 27.023c-0.804 9.312 15.736 20.827 14.14 29.898-1.607 9.198-21.088 14.396-23.468 23.303-2.411 9.008 11.866 23.243 8.704 31.91-3.173 8.754-23.277 10.467-27.19 18.846-3.924 8.426 7.646 24.93 3.015 32.938-4.653 8.043-24.737 6.231-30.057 13.812-5.33 7.604 3.204 25.866-2.75 32.957-5.965 7.106-25.435 1.854-31.991 8.41-6.567 6.56-1.301 26.021-8.418 31.989-7.086 5.959-25.351-2.573-32.954 2.752-7.583 5.325-5.774 25.411-13.813 30.056-8.016 4.633-24.514-6.942-32.943-3.006-8.375 3.908-10.078 24.005-18.835 27.183-8.661 3.162-22.896-11.115-31.917-8.715-8.905 2.38-14.098 21.86-23.299 23.483-9.063 1.581-20.58-14.959-29.887-14.155-9.169 0.788-17.662 19.073-27.029 19.073-9.365 0-17.862-18.285-27.026-19.073-9.312-0.804-20.829 15.731-29.897 14.15-9.196-1.618-14.394-21.099-23.304-23.479-9.005-2.4-23.235 11.877-31.912 8.715-8.751-3.184-10.459-23.274-18.841-27.183-8.423-3.937-24.927 7.639-32.938 3.006-8.048-4.652-6.229-24.741-13.817-30.063-7.599-5.325-25.863 3.207-32.959-2.753-7.107-5.967-1.851-25.429-8.408-31.988-6.557-6.557-26.016-1.304-31.992-8.402-5.954-7.097 2.581-25.36-2.744-32.965-5.32-7.588-25.414-5.779-30.067-13.822-4.627-8.009 6.954-24.512 3.014-32.938-3.908-8.369-24.002-10.082-27.185-18.836-3.157-8.669 11.125-22.902 8.72-31.902-2.379-8.907-21.871-14.116-23.478-23.303-1.586-9.071 14.954-20.586 14.15-29.898-0.793-9.167-19.079-17.661-19.079-27.023 0-9.37 18.285-17.865 19.079-27.032 0.804-9.312-15.737-20.823-14.15-29.897 1.618-9.188 21.099-14.394 23.478-23.303 2.406-9-11.876-23.235-8.72-31.907 3.188-8.754 23.277-10.464 27.19-18.835 3.939-8.426-7.641-24.938-3.009-32.943 4.653-8.045 24.742-6.234 30.062-13.814 5.331-7.604-3.204-25.865 2.755-32.959 5.964-7.107 25.429-1.854 31.991-8.411 6.552-6.554 1.295-26.016 8.402-31.989 7.097-5.954 25.361 2.581 32.965-2.747 7.583-5.325 5.774-25.414 13.812-30.064 8.017-4.629 24.515 6.948 32.943 3.014 8.371-3.913 10.084-24.007 18.835-27.19 8.672-3.154 22.902 11.123 31.907 8.72 8.905-2.382 14.103-21.863 23.298-23.48 9.068-1.586 20.585 14.957 29.903 14.153 9.16-0.792 17.663-19.08 27.022-19.08z"
                                                            fill="#C6C6C6" p-id="8421"></path><path
                                                            d="M312.38 204.275c109.875-109.875 288.022-109.875 397.897 0 109.869 109.875 109.869 288.021 0 397.898-109.881 109.875-288.022 109.875-397.897 0-109.869-109.877-109.869-288.011 0-397.898z"
                                                            fill="#DDDDDD" p-id="8422"></path><path
                                                            d="M436.646 493.701v-19.07l24.367-23.661c58.623-55.798 85.109-85.462 85.463-120.071 0-23.308-11.301-44.85-45.557-44.85-20.836 0-38.14 10.594-48.735 19.423l-9.888-21.896c15.892-13.419 38.493-23.308 64.979-23.308 49.441 0 70.276 33.902 70.276 66.745 0 42.378-30.724 76.633-79.105 123.249l-18.364 16.951v0.707h103.119v25.78H436.646z"
                                                            fill="#7F7F7F" p-id="8423"></path><path
                                                            d="M585.91 496.409H433.939v-22.923l25.188-24.458c59.422-56.558 84.308-85.469 84.642-118.156 0-15.711-5.567-42.115-42.85-42.115-21.271 0-38.578 11.776-47.001 18.796l-2.735 2.279-12.195-27.004 1.563-1.319c18.287-15.442 41.984-23.947 66.726-23.947 50.417 0 72.983 34.882 72.983 69.453 0 44.726-33.13 80.103-79.934 125.199l-14.083 13h99.667v31.195z m-146.556-5.415h141.142v-20.365h-103.12v-4.6l19.235-17.755c45.791-44.121 78.234-78.671 78.234-121.26 0-29.541-17.696-64.038-67.569-64.038-22.76 0-44.573 7.575-61.661 21.371l7.597 16.823c11.068-8.599 27.627-17.829 47.707-17.829 30.673 0 48.264 17.334 48.264 47.558-0.37 36.308-27.918 66.46-86.303 122.032l-23.526 22.845v15.218z"
                                                            fill="#7F7F7F" p-id="8424"></path><path
                                                            d="M511.33 547.735l8.149 16.504 18.214 2.65-13.188 12.843 3.12 18.141-16.295-8.564-16.291 8.564 3.114-18.141-13.177-12.843 18.211-2.65zM429.754 526.96l1.74 16.323 14.446 7.821-14.985 6.708-2.972 16.149-11.009-12.181-16.276 2.168 8.18-14.24-7.091-14.809 16.07 3.382zM592.919 526.96l-1.755 16.323-14.436 7.821 14.986 6.708 2.961 16.149 11.01-12.181 16.286 2.168-8.186-14.24 7.086-14.809-16.064 3.382z"
                                                            fill="#7F7F7F" p-id="8425"></path></svg>
                                            <?php elseif ($k + 1 == 3): ?>
                                                <svg t="1635413598370" class="icon" viewBox="0 0 1024 1024"
                                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8605"
                                                     width="20" height="20"><path
                                                            d="M318.601 479.35L133.288 818.355l161.722-23.377 67.62 148.747 185.318-339.006z"
                                                            fill="#148C00" p-id="8606"></path><path
                                                            d="M713.397 479.35l185.314 339.005-161.723-23.377-67.62 148.747L484.05 604.719z"
                                                            fill="#148C00" p-id="8607"></path><path
                                                            d="M515.999 80.614c9.229 0 17.603 18.02 26.634 18.802 9.177 0.792 20.527-15.509 29.459-13.935 9.067 1.584 14.195 20.782 22.976 23.127 8.881 2.366 22.898-11.693 31.439-8.588 8.635 3.137 10.313 22.93 18.572 26.796 8.302 3.877 24.571-7.535 32.461-2.97 7.931 4.586 6.144 24.388 13.616 29.631 7.488 5.252 25.493-3.168 32.481 2.709 7.003 5.878 1.823 25.066 8.29 31.527 6.452 6.462 25.634 1.282 31.522 8.275 5.872 7.004-2.543 24.993 2.709 32.486 5.243 7.483 25.034 5.69 29.626 13.611 4.561 7.9-6.853 24.169-2.976 32.476 3.861 8.244 23.669 9.922 26.801 18.552 3.116 8.546-10.97 22.574-8.582 31.454 2.339 8.775 21.538 13.893 23.122 22.96 1.563 8.942-14.732 20.292-13.94 29.463 0.776 9.036 18.802 17.405 18.802 26.629 0 9.234-18.025 17.614-18.802 26.64-0.792 9.172 15.503 20.521 13.935 29.454-1.578 9.067-20.787 14.194-23.127 22.97-2.377 8.881 11.693 22.909 8.582 31.444-3.132 8.631-22.939 10.318-26.801 18.573-3.866 8.306 7.541 24.575 2.977 32.465-4.587 7.921-24.383 6.139-29.632 13.612-5.247 7.493 3.158 25.492-2.704 32.475-5.878 7.004-25.065 1.824-31.532 8.286-6.462 6.463-1.276 25.649-8.285 31.528-6.988 5.867-24.988-2.533-32.481 2.709-7.468 5.253-5.686 25.045-13.611 29.62-7.9 4.564-24.154-6.837-32.461-2.96-8.254 3.856-9.938 23.659-18.562 26.796-8.541 3.106-22.569-10.964-31.455-8.599-8.771 2.346-13.893 21.543-22.96 23.148-8.932 1.553-20.287-14.748-29.459-13.956-9.031 0.782-17.405 18.802-26.634 18.802s-17.603-18.02-26.634-18.802c-9.176-0.792-20.527 15.509-29.458 13.945-9.067-1.595-14.189-20.792-22.971-23.138-8.875-2.365-22.903 11.705-31.449 8.599-8.625-3.147-10.308-22.939-18.567-26.796-8.301-3.877-24.57 7.524-32.46 2.96-7.932-4.586-6.144-24.378-13.617-29.631-7.488-5.241-25.488 3.169-32.481-2.709-7.004-5.879-1.819-25.055-8.286-31.527-6.457-6.462-25.639-1.283-31.528-8.276-5.868-6.993 2.543-24.992-2.709-32.485-5.242-7.483-25.035-5.701-29.625-13.622-4.56-7.891 6.853-24.159 2.976-32.465-3.856-8.245-23.659-9.934-26.795-18.563-3.111-8.536 10.959-22.564 8.593-31.435-2.345-8.775-21.553-13.913-23.143-22.97-1.558-8.932 14.742-20.282 13.95-29.454-0.782-9.036-18.802-17.405-18.802-26.64 0-9.234 18.02-17.603 18.802-26.639 0.792-9.171-15.508-20.521-13.95-29.463 1.595-9.057 20.798-14.185 23.143-22.961 2.366-8.869-11.704-22.897-8.593-31.443 3.142-8.63 22.939-10.318 26.8-18.563 3.877-8.307-7.535-24.576-2.97-32.465 4.586-7.932 24.383-6.149 29.625-13.611 5.258-7.494-3.158-25.493 2.709-32.486 5.884-7.004 25.066-1.824 31.533-8.286 6.461-6.462 1.277-25.639 8.28-31.527 6.994-5.868 24.993 2.543 32.486-2.71 7.473-5.243 5.69-25.044 13.617-29.62 7.895-4.565 24.154 6.848 32.46 2.97 8.249-3.866 9.937-23.659 18.562-26.806 8.542-3.106 22.57 10.964 31.444 8.598 8.776-2.345 13.898-21.542 22.965-23.137 8.932-1.563 20.287 14.737 29.458 13.945 9.032-0.779 17.407-18.799 26.635-18.799z"
                                                            fill="#DD8E2F" p-id="8608"></path><path
                                                            d="M316.073 209.581c109.875-109.875 288.021-109.875 397.897 0 109.868 109.875 109.868 288.021 0 397.897-109.881 109.875-288.022 109.875-397.897 0-109.869-109.875-109.869-288.01 0-397.897z"
                                                            fill="#FFA70B" p-id="8609"></path><path
                                                            d="M449.701 461.477c8.7 5.568 28.886 14.269 50.115 14.269 39.326 0 51.507-25.058 51.159-43.851-0.349-31.67-28.886-45.243-58.468-45.243h-17.053v-22.969h17.053c22.273 0 50.463-11.485 50.463-38.283 0-18.097-11.484-34.106-39.674-34.106-18.097 0-35.499 8.004-45.243 14.965l-8.005-22.273c11.833-8.701 34.802-17.401 59.164-17.401 44.547 0 64.732 26.45 64.732 53.943 0 23.318-13.921 43.155-41.763 53.248v0.696c27.842 5.568 50.463 26.45 50.463 58.12 0 36.194-28.189 67.864-82.481 67.864-25.405 0-47.679-8.004-58.815-15.313l8.353-23.666z"
                                                            fill="#973F00" p-id="8610"></path><path
                                                            d="M500.164 503.123c-26.778 0-49.208-8.484-60.279-15.75l-1.748-1.147 10.168-28.811 2.834 1.814c7.483 4.79 27.288 13.848 48.677 13.848 16.431 0 29.104-4.423 37.666-13.145 7.075-7.208 11.021-17.409 10.825-27.989-0.346-31.466-30.275-42.624-55.8-42.624h-19.721v-28.305h19.721c19.212 0 47.795-9.485 47.795-35.615 0-19.686-13.834-31.438-37.006-31.438-17.3 0-34.349 7.794-43.692 14.468l-2.869 2.05-9.871-27.465 1.604-1.179c12.131-8.92 35.618-17.92 60.745-17.92 46.56 0 67.4 28.433 67.4 56.611 0 23.305-13.348 42.332-36.9 53.059 27.937 8.28 45.601 30.792 45.601 59.004 0 19.29-7.729 36.866-21.765 49.489-15.308 13.769-37.226 21.045-63.385 21.045z m-55.588-19.107c11.724 7.024 32.82 13.771 55.588 13.771 55.135 0 79.813-32.745 79.813-65.196 0-27.847-18.966-49.633-48.318-55.503l-2.145-0.429v-4.754l1.759-0.638c25.797-9.351 40.004-27.371 40.004-50.739 0-23.654-16.255-51.275-62.064-51.275-22.835 0-44.139 7.729-55.966 15.742l6.157 17.132c10.672-6.846 26.968-13.5 43.893-13.5 31.219 0 42.342 18.996 42.342 36.774 0 26.884-26.729 40.951-53.131 40.951h-14.385v17.633h14.385c27.959 0 60.747 12.54 61.136 47.881 0.222 11.982-4.28 23.583-12.354 31.806-9.604 9.783-23.557 14.743-41.474 14.743-20.282 0-39.252-7.723-48.682-12.982l-6.558 18.583z"
                                                            fill="#973F00" p-id="8611"></path><path
                                                            d="M515.999 549.877l8.025 16.269 17.953 2.606-12.992 12.663 3.07 17.874-16.056-8.442-16.056 8.442 3.07-17.874-12.992-12.663 17.953-2.606zM435.606 529.407l1.721 16.081 14.231 7.714-14.768 6.607-2.924 15.916-10.854-12.007-16.04 2.136 8.061-14.029-6.983-14.591 15.831 3.326zM596.401 529.407l-1.729 16.081-14.227 7.714 14.769 6.607 2.918 15.916 10.86-12.007 16.045 2.136-8.072-14.029 6.988-14.591-15.832 3.326z"
                                                            fill="#973F00" p-id="8612"></path></svg>
                                            <?php else: ?>
                                                <?php echo $k + 1; ?>
                                            <?php endif; ?>
                                        </span>
                                        <span class="icon"><img src="<?php echo $rs['icon']; ?>"/></span>
                                        <span class="title"><?php echo $rs['title']; ?></span>
                                        <span class="num"><?php echo $rs['visit_no']; ?></span>
                                    </a>
                                </li>
                                <?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
            </section>
            <section class="joe_aside__item apply-friend">
                <a href="https://www.wjssk.com/archives/262/">
                    <div class="joe_aside__item-title">
                        <svg t="1635748293238" class="icon" viewBox="0 0 1024 1024" version="1.1"
                             xmlns="http://www.w3.org/2000/svg" p-id="7459" width="18" height="18">
                            <path d="M704 416H320a32 32 0 0 0 0 64h384a32 32 0 0 0 0-64zM704 608H320a32 32 0 0 0 0 64h384a32 32 0 0 0 0-64z"
                                  p-id="7460"></path>
                            <path d="M832 32H192C139.072 32 96 75.072 96 128v768c0 52.928 43.072 96 96 96h640c52.928 0 96-43.072 96-96V128c0-52.928-43.072-96-96-96zM320 96h384v96H320V96z m544 800a32 32 0 0 1-32 32H192c-17.632 0-32-14.336-32-32V128c0-17.632 14.368-32 32-32h64v96c0 35.296 28.704 64 64 64h384c35.296 0 64-28.704 64-64V96h64c17.664 0 32 14.368 32 32v768z"
                                  p-id="7461"></path>
                        </svg>
                        <span class="text">如有问题请提交</span>
                    </div>
                </a>
            </section>
            <section class="joe_aside__item flatterer">
                <div class="joe_aside__item-title">
                    <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="18"
                         height="18">
                        <path d="M774.144 734.72c-35.328 60.416-99.84 93.696-176.64 74.752-1.024 29.696-12.288 54.784-36.352 72.704-15.36 11.264-33.28 16.896-51.712 15.872-47.616-1.536-75.264-30.72-85.504-88.064-74.752 15.36-132.608-8.704-173.056-72.192-17.92 3.584-35.84 9.216-53.76 10.752-63.488 5.12-107.52-28.16-122.88-90.112-12.288-49.152-7.68-98.816 5.12-146.944 34.304-130.048 102.4-238.08 213.504-315.392 146.944-102.912 333.312-93.184 471.552 24.576C865.792 307.2 928.768 416.768 952.832 547.84c6.144 34.816 6.656 70.144-1.024 104.96-20.48 94.72-100.864 110.592-166.4 86.016-3.584-.512-7.168-2.048-11.264-4.096zm-235.008-46.592c11.776 41.984 46.592 71.68 90.112 76.288 42.496 4.096 82.432-17.92 102.912-55.296 3.072-6.144 3.072-10.752.512-17.92-6.144-16.384-14.336-33.792-14.848-51.2-2.048-86.016-2.048-172.032-2.56-258.048 0-15.872 8.704-24.576 23.04-24.064 13.824.512 20.992 8.704 20.992 24.576l1.536 240.64c0 6.144 0 12.288.512 18.432 1.536 15.872 7.168 30.208 19.456 40.96 40.448 36.864 104.96 19.456 120.32-32.768 8.704-30.208 8.704-60.928 3.584-91.136-20.48-117.248-75.776-216.064-164.352-295.424-119.296-106.496-277.504-121.344-408.064-36.352-117.76 76.8-184.832 188.416-211.968 324.608-6.656 33.792-7.168 68.608 4.096 101.888 8.192 23.552 22.528 40.96 48.128 46.08 54.784 10.752 92.16-19.456 92.16-75.264V614.4c0-76.8 0-153.088.512-229.888 0-17.92 8.192-27.136 23.04-26.624 14.336 0 21.504 9.216 22.016 26.624 0 12.8-.512 25.6-.512 37.888 0 69.12-.512 138.24-.512 207.36 0 22.528-5.12 43.52-16.384 63.488-2.048 4.096-2.56 11.264-.512 15.36 29.696 59.904 111.104 75.264 160.768 30.72 16.384-14.848 28.16-32.256 32.256-50.688-14.336-13.312-26.624-25.088-39.424-36.864-15.36-14.336-17.92-31.744-12.288-50.688 5.632-19.968 19.456-33.792 39.424-35.84 25.6-2.56 51.712-2.048 77.312 0 19.456 1.536 32.256 15.36 38.4 33.792 5.632 16.896 5.632 33.792-7.168 47.616-11.776 14.336-26.624 26.624-42.496 41.472zm-50.176 85.504c-18.944 13.312-24.064 30.208-16.384 51.712 6.144 17.92 23.552 29.184 41.472 27.648 18.944-1.536 33.28-14.336 37.376-33.28 5.632-26.112 2.56-35.328-15.872-45.056-1.024 9.216-.512 18.944-2.56 27.648-2.56 10.24-11.264 14.848-21.504 14.848-15.36.512-19.968-8.192-22.528-43.52z"/>
                        <path d="M391.168 496.64c-20.992 0-37.376-16.896-36.864-37.376.512-20.48 17.92-36.864 38.4-36.352 19.968.512 35.84 16.896 35.84 37.376.512 20.48-15.872 36.352-37.376 36.352zm282.624-31.744c0 20.48-15.872 36.864-36.352 36.864-20.992 0-37.888-16.384-37.376-37.376.512-20.48 16.384-36.864 36.864-36.864 20.992-.512 36.864 15.872 36.864 37.376z"/>
                    </svg>
                    <span class="text">舔狗日记</span>
                    <span class="line"></span>
                </div>
                <div class="joe_aside__item-contain">
                    <div class="content"></div>
                    <div class="change">
                        <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20"
                             height="20">
                            <path d="M1000.61 625.5c-24.6-33.4-55.3-155.5-69.3-231.5-3.8-20.6-18.7-36.9-38.8-42.6-4-1.1-8.1-1.8-12.2-1.9-35.3-59-74.5-66.7-100.5-71.8-18.5-3.6-18.8-4.5-21.5-11.1-13.1-32.1-32.3-54-57.1-65.1-20.8-9.4-41.4-9.2-53.7-9.2-.9 0-2-.2-3.2-.5-.8-.2-1.6-.3-2.4-.4-39.3-56.7-70.7-68.1-108.5-68.1h-.2c-38.1 0-63 21-81.2 36.4l-1.6 1.4c-21.3 18-24.9 18.8-33.7 15.2-45.3-18.6-84.6-8.1-116.8 31-13.6 16.6-20.7 29-25.4 37.1l-.1.2c-5.1-.7-10.3-1.6-15.4-2.5-27.5-4.9-51.8 6.7-72.4 34.5-16.7 22.5-27.7 51.7-34.2 73.1-1.7-.2-3.3-.3-5-.3-27.1 0-50.4 20.3-54 47.2-5.5 39.8-15.3 87.4-26.2 127.3-13.4 48.9-27.5 83.2-40.8 99.3-27.6 33.4-28.7 66.5-24.7 88.4 6.7 37.3 34.9 73.7 75.5 97.3 55.3 32.2 158.1 92 447 92 268 0 356.3-52.2 414.8-86.8l2.2-1.3c2.3-1.4 4.5-2.7 6.8-4 18.6-10.8 63-41.6 73.8-93.3 4.4-21.8 4.5-55-21.2-90zM919.01 759c-3 1.8-6.1 3.6-9.3 5.5-27.1 16-60.7 35.9-118.5 51.5-67.9 18.3-155.2 27.2-266.9 27.2-273.4 0-367.5-54.8-418.1-84.2-20.2-11.8-43.4-33.1-47.8-57.7-2.6-14.5 1.6-28.5 12.5-41.6 22.3-27 42.5-78.2 60-152.3 10.3-43.7 16.6-82.8 18.8-97.2 28.9 25.2 104.2 42.6 148.1 51 73.8 14.1 161.6 22.5 234.9 22.5 68.4 0 140.7-7.1 203.7-20.1 62.7-12.9 110.4-30.4 134.6-49.3 1.9-.2 3.7-.6 5.5-1.2 7.7 39.5 39.9 194.9 77.8 246.5 10.6 14.4 14.3 29.2 11.2 44.2-4.3 20.1-21.7 40.8-46.5 55.2zm-271.3-509.5c23.2-.1 41.5-.2 57.3 38.6 14.8 36.3 44.2 42 63.7 45.9 18.9 3.7 38.5 7.6 59.3 40.1-15.5 9-49.3 21.8-101.4 32.7v-1c-1.7-55.7-39.4-82-61.3-88.7-7.3-2.3-15.1-1.5-21.9 2.1-6.8 3.6-11.8 9.6-14.1 17-4.7 15.2 3.9 31.3 19 35.9.8.3 19.9 6.8 20.7 35.5.1 3 .7 6 1.8 9-45.5 6.3-91.7 9.6-137.6 9.6h-.8c-68 0-150.1-7.7-219.4-20.6-60.1-11.2-93.1-22.8-108.5-29.4 11.5-43.5 32-79.4 44.4-77.4 38.1 6.7 55.8 8.2 75.1-25.2 4-6.9 9.5-16.4 20.3-29.6 17.9-21.8 31.6-21.8 50.4-14.1 42.5 17.4 70.8-6.5 91.5-24l3.7-3.1c14-11.8 26.1-22.1 43.3-22.1 18.3 0 32.8 0 65.4 49.3 0 .1.1.2.1.3.2.5.4 1 .7 1.5 13 17.6 32.6 17.7 48.3 17.7z"/>
                            <path d="M197.61 503.7c-15.7-2.2-30.3 8.9-32.4 24.6-3.6 25.7-10.5 55.9-18.6 80.8-9.8 30.3-20.5 50.7-30.8 59.1-6 4.8-9.9 11.6-10.8 19.2-.9 7.6 1.2 15.2 6 21.2s11.6 9.9 19.2 10.8c1.2.1 2.3.2 3.5.2 6.4 0 12.6-2.1 17.7-6.2.2-.2.4-.3.6-.5 21.2-17.1 39.2-50.4 53.4-98.8 11-37.4 16-71.6 16.9-78.1 2-15.6-9-30.2-24.7-32.3zm234.9-238.6c-6.6-4-14.3-5.2-21.8-3.4l-.4.1c-55.8 13.8-74.3 65.3-76.5 93.6-.6 7.7 1.9 15.1 6.9 20.9 5 5.8 12 9.4 19.6 9.9h.1c.7.1 1.4.1 2.1.1 14.9 0 27.5-11.5 28.7-26.6 0-.3 3.2-34.7 32.9-42.1 7.5-1.8 13.8-6.4 17.8-13s5.2-14.3 3.4-21.8c-1.6-7.4-6.2-13.7-12.8-17.7zm144.2 34.3c-1.8.4-18 3.3-28.7-18.6-6.9-14.3-24.2-20.2-38.5-13.3-6.9 3.4-12.1 9.2-14.6 16.5-2.5 7.3-2 15.1 1.3 22 22.5 46.2 61.9 51.2 77.8 51.2 5.8 0 11.4-.6 16.2-1.8 7.5-1.8 13.8-6.4 17.8-13s5.2-14.3 3.4-21.8c-1.8-7.5-6.4-13.8-13-17.8s-14.3-5.2-21.7-3.4z"/>
                        </svg>
                    </div>
                </div>
            </section>
        </aside>
    </div>
    <script src="https://cdn.jsdelivr.net/gh/alanyuewei/static@latest/layer/3.5.1/layer.js"></script>
    <script src="<?php echo $plugUrl . '/pages/static/js/js.of.joe.js'; ?>"></script>
    <?php $this->need('public/footer.php'); ?>
</div>
</body>

</html>
